﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace LineWatch_WinForm
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new LoginView());

            LoginView loginView = new LoginView();
            Application.Run(loginView);

            if (LoginInfo.Authorized)
            {
                ProductManagementView productManagementView
                    = new ProductManagementView();
                Application.Run(productManagementView);
            }
        }
    }
}
